<template>
  <div>
    <el-breadcrumb separator-class="el-icon-arrow-right">
      <el-breadcrumb-item :to="{ path: '/home' }">首页</el-breadcrumb-item>
      <el-breadcrumb-item v-if="(routerName.titleName && routerName.titleName != '首页')  ? true : false">{{
        routerName.titleName
      }}</el-breadcrumb-item>
      <el-breadcrumb-item v-if="(routerName.titleName && routerName.titleName != '首页') ? true : false">{{
        routerName.sonName
      }}</el-breadcrumb-item>
    </el-breadcrumb>
  </div>
</template>

<script>
export default {
  name: 'BreadcrumbPlug',
  data() {
    return {}
  },
  components: {},
  created() { },
  mounted() { },
  methods: {},
  computed: {
    routerName() {
      return this.$route.meta
    }
  },
  watch: {}
}
</script>

<style lang="less" scoped>
.el-breadcrumb {
  user-select: none;
  margin: 0 0 12px 0;
}
</style>
